import Request from '@/utils/request'

export const teamMembersPageGet = data => {
    return Request({
        url: '/teamMembers/page',
        method: 'post',
        data: data,
    })
}
export const teamMembersListGet = data => {
    return Request({
        url: '/teamMembers/list',
        method: 'post',
        data: data,
    })
}

export const teamMembersDelete = id => {
    return Request({
        url: '/teamMembers/delete/' + id,
        method: 'get',
    })
}

export const teamMembersOne = id => {
    return Request({
        url: '/teamMembers/one/' + id,
        method: 'get',
    })
}

export const teamMembersUpdate = data => {
    return Request({
        url: '/teamMembers/update',
        method: 'post',
        data: data
    })
}

export const teamMembersAdd = data => {
    return Request({
        url: '/teamMembers/save',
        method: 'post',
        data: data
    })
}
